package goko.simple.contract;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lsl.rdf.annotation.InjectDescByCode;
import com.lsl.rdf.annotation.InjectDescByVal;
import com.lsl.rdf.annotation.InjectEnumTarget;
import goko.simple.enums.GoodsStatusEnum;
import goko.simple.enums.GoodsTypeEnum;
import lombok.Data;

import java.util.Date;

/**
 * Created by lsl on 2021/7/9.
 */
@Data
@InjectEnumTarget
public class GoodsSearchResult {

    private String id;

    private String name;

    private Integer num;

    private String remark;

    @InjectDescByVal(enumClass = GoodsStatusEnum.class) // 枚举描述自动透出目标字段标识注解（val类型）
    private Integer status;

    private String statusDesc;

    @InjectDescByCode(enumClass = GoodsTypeEnum.class) // 枚举描述自动透出目标字段标识注解（code类型）
    private String type;

    private String typeDesc;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;
}
